package com.group4.xiao_ge_lai_yi_zhu.domain;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 彩票类
 * 票上内容:1.序号 2.总期数 3.开奖时间  4.选中号码 6+1 5.出票时间
 */
public class Lottery {
    private String serialNum;
    private int period;
    private Date prizeTime;
    private String lotteryNum;
    private LocalDateTime ticketTime;

    @Override
    public String toString() {
        return "Lottery{" +
                "serialNum='" + serialNum + '\'' +
                ", period=" + period +
                ", prizeTime=" + prizeTime +
                ", lotteryNum='" + lotteryNum + '\'' +
                ", ticketTime=" + ticketTime +
                '}';
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public Date getPrizeTime() {
        return prizeTime;
    }

    public void setPrizeTime(Date prizeTime) {
        this.prizeTime = prizeTime;
    }

    public String getLotteryNum() {
        return lotteryNum;
    }

    public void setLotteryNum(String lotteryNum) {
        this.lotteryNum = lotteryNum;
    }

    public LocalDateTime getTicketTime() {
        return ticketTime;
    }

    public void setTicketTime(LocalDateTime ticketTime) {
        this.ticketTime = ticketTime;
    }

    public Lottery(String serialNum, int period, Date prizeTime, String lotteryNum, LocalDateTime ticketTime) {
        this.serialNum = serialNum;
        this.period = period;
        this.prizeTime = prizeTime;
        this.lotteryNum = lotteryNum;
        this.ticketTime = ticketTime;
    }
}
